package com.nhjf.model.teachers;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
import com.nhjf.model.system.User;

@SuppressWarnings("serial")
@Entity
@Table(name = "operationLog")
public class OperationLog extends BaseModel{

	/**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long id;
	/**
	 * 操作人id
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "operationUserId")
	private User userId;
	/**
	 * 操作时间
	 */
	@Column(name = "operationTime")
	private Date operationTime;
	/**
	 * 操作人姓名
	 */
	@Column(name = "operationUserName")
	private String operationUserName;
	/**
	 * 操作描述
	 */
	@Column(name = "operationDescription")
	private String operationDescription;
	/**
	 * 1:删除 2：增加 3：修改
	 */
	@Column(name = "operationType")
	private Integer operationType;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public User getUserId() {
		return userId;
	}
	public void setUserId(User userId) {
		this.userId = userId;
	}
	public Date getOperationTime() {
		return operationTime;
	}
	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}
	public String getOperationUserName() {
		return operationUserName;
	}
	public void setOperationUserName(String operationUserName) {
		this.operationUserName = operationUserName;
	}
	public String getOperationDescription() {
		return operationDescription;
	}
	public void setOperationDescription(String operationDescription) {
		this.operationDescription = operationDescription;
	}
	public Integer getOperationType() {
		return operationType;
	}
	public void setOperationType(Integer operationType) {
		this.operationType = operationType;
	}
	
	
}
